package com.wd.attend.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wd.common.annotation.Excel;
import com.wd.common.core.domain.BaseEntity;

/**
 * 考勤记录对象 attend_record
 *
 * @author liumingkun
 * @date 2023-11-07
 */
public class AttendRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 通行记录Id
     */
    private Long recordId;

    /**
     * 员工Id
     */
    @Excel(name = "员工Id")
    private String staffId;

    /**
     * 员工工号
     */
    @Excel(name = "员工工号")
    private String staffNum;

    /**
     * 员工Id
     */
    @Excel(name = "员工姓名")
    private String staffName;

    /**
     * 通行时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "通行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date attendTime;

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffNum() {
        return staffNum;
    }

    public void setStaffNum(String staffNum) {
        this.staffNum = staffNum;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setAttendTime(Date attendTime) {
        this.attendTime = attendTime;
    }

    public Date getAttendTime() {
        return attendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("recordId", getRecordId())
                .append("staffId", getStaffId())
                .append("staffNum", getStaffId())
                .append("staffName", getStaffId())
                .append("attendTime", getAttendTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
